package com.codi.bus.core.dao;

import com.codi.base.dao.BaseDAO;
import com.codi.base.dao.v2.GeneratedBaseDao;
import com.codi.bus.core.domain.FundCombinationHistory;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.Date;
import java.util.List;

/**
 * 亲，写个类注释呗
 * @author wangzhenhao
 * @date 2017-11-20 13:58
 */
public interface FundCombinationHistoryDao extends BaseDAO<FundCombinationHistory> {
    int add(FundCombinationHistory fundCombinationHistory);

    List<FundCombinationHistory> queryByDate(Date date, String combinationCode);

    List<FundCombinationHistory> queryByTradeDate(String combinationCode, Date tradeDate);

    Page<FundCombinationHistory> queryByPage(Pageable pageable);

    Page<FundCombinationHistory> queryByPageAndCombinationCode(Pageable pageable, String combinationCode);

    int deleteByKey(Long combinationId);

    FundCombinationHistory queryById(Long combinationId);

    int updateById(FundCombinationHistory history);

    int addFundHistory(FundCombinationHistory fundCombinationHistory);
}
